<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/27
 * Time: 13:25
 */



//define('EC_CHARSET', 'utf-8');
define('IN_ECS', true);

require(dirname(__FILE__) . '/includes/init.php');
require_once(ROOT_PATH . '/' . ADMIN_PATH . '/includes/lib_goods.php');
//require_once(ROOT_PATH . '/includes/lib_order.php');
//require_once(ROOT_PATH . '/includes/lib_goods.php');







//define('IN_ECS', true);
////define('ROOT_PATH', 'D:/Program Files/Zend/Apache2/htdocs/ecshop/');
//define('ROOT_PATH', 'D:/xampp/htdocs/ecshop/');
//define('DATA_DIR', 'data');
//
//$db_host = "j5zsew03.2298.dnstoo.com:5511";
//$db_name = "tanghe8";
//$db_user = "tanghe8_f";
//$db_pass = "tanghe8";
//
//require('../includes/cls_mysql.php');
//$db2 = new cls_mysql($db_host, $db_user, $db_pass, $db_name);


if ($_REQUEST['act'] == 'test')
{
    $user_name='admin';
    $sql = "SELECT user_name FROM ecs_admin_user where user_name='$user_name'";
//    $result = $GLOBALS['db']->getAll($sql);
    $result = $GLOBALS['db']->getone($sql);
    print_r('123123<br>');
//    print_r('<br>');
    print_r($result);
}

//function test_getAll()
//{
////    global $db2;
//
//    $sql = "SELECT user_id, user_name, email FROM ecs_admin_user";
//    $result = $GLOBALS['db']->getAll($sql);
//    print_r($result);
//}
//
//test_getAll();